home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
tex
/
egrep.zip
/
REGX.ZIP
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1987-06-19
|
1KB
|
43 lines
# Things you might want to put in ENV and LENV:
# -Dvoid=int compilers that don't do void
# -DCHARBITS=0377 compilers that don't do unsigned char
# -DSTATIC=extern compilers that don't like "static foo();" as forward decl
# -DSTRCSPN library does not have strcspn()
# -Dstrchr=index library does not have strchr()
# -DERRAVAIL have utzoo-compatible error() function and friends
ENV= -DSTRCSPN -Dstrchr=index
LENV= -DSTRCSPN -Dstrchr=index
# Things you might want to put in TEST:
# -DDEBUG debugging hooks
# -I. regexp.h from current directory, not /usr/include
TEST= -I.
# Things you might want to put in PROF:
# -Dstatic='/* */' make everything global so profiler can see it.
# -p profiler
PROF=
CFLAGS=-O $(ENV) $(TEST) $(PROF)
LINTFLAGS=$(LENV) $(TEST) -ha
LDFLAGS=
OBJ=regexp.obj regsub.obj
LSRC=regexp.c regsub.c regerror.c
DTR=README dMakefile regexp.3 regexp.h regexp.c regsub.c regerror.c \
regmagic.h try.c timer.c tests
regexp.obj: regexp.c regexp.h regmagic.h
cl regexp.c -c -O
regsub.obj: regsub.c regexp.h regmagic.h
cl regsub.c -c -O
try: try.obj $(OBJ)
cl $(LDFLAGS) try.obj $(OBJ) -O -o try
# Making timer will probably require putting stuff in $(PROF) and then
# recompiling everything; the following is just the final stage.
timer: timer.obj $(OBJ)
cl $(LDFLAGS) $(PROF) timer.o $(OBJ) -obj timer